var express = require('express');
var router = express.Router();

// 模拟人脸识别的算法
router.get("/getFaceData", (req,res)=>{
    res.send({
        status: 200,
        message: 'ok',
        data : {
            imageUrl: "http://localhost:3000/images/person.jpg",
            faceRectangles: [   // 此数据将来是AI人脸识别算法分析出来的坐标及矩形宽高
                {
                    id : 1,
                    x: 64,
                    y: 25,
                    width: 90,
                    height: 95
                },
                {
                    id : 2,
                    x: 228,
                    y: 40,
                    width: 80,
                    height: 90
                },
                {
                    id : 3,
                    x: 400,
                    y: 20,
                    width: 78,
                    height: 96
                },
                {
                    id : 4,
                    x: 25,
                    y: 210,
                    width: 100,
                    height: 120
                },
                {
                    id : 5,
                    x: 215,
                    y: 205,
                    width: 80,
                    height: 105
                },
                {
                    id : 6,
                    x: 440,
                    y: 220,
                    width: 68,
                    height: 80
                }
            ]
        }
    })
})


module.exports = router;